package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 *
 * </p>
 *
 * @author pjc
 * @since 2021-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_information")
@ApiModel(value = "HInformation对象", description = "HInformation对象")
public class HInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "h_id", type = IdType.AUTO)
    private Integer hId;

    @ApiModelProperty(value = "发布时间")
    @TableField("h_setime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hSetime;

    @ApiModelProperty(value = "结束时间")
    @TableField("h_stoptime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hStoptime;

    @ApiModelProperty(value = "作业类型(1为日常作业，2为阶段性交付作业，3为最终交付作业)")
    @TableField("h_type")
    private Integer hType;

    @ApiModelProperty(value = "作业主题")
    @TableField("h_title")
    private String hTitle;

    @ApiModelProperty(value = "课程id")
    @TableField("kc_id")
    private Integer kcId;

    @ApiModelProperty(value = "附件id")
    @TableField(value = "c_f_id",updateStrategy=FieldStrategy.NOT_NULL)
    private Integer cFId;

    @ApiModelProperty(value = "作业内容")
    @TableField("s_content")
    private String sContent;

    @ApiModelProperty(value = "发布人")
    @TableField("t_id")
    private Integer tId;

    @ApiModelProperty(value = "接受对象（小组为单位）")
    @TableField("receiver")
    private String receiver;



//
//    @ApiModelProperty(value = "课程表")
//    @TableField(exist = false)
//    private KcInformation kcInformation;
//
//    @ApiModelProperty(value = "教师表（实训老师：下发作业的那个）")
//    @TableField(exist = false)
//    private TInformation tInformation;
//
//    @ApiModelProperty(value = "学生作业提交表")
//    @TableField(exist = false)
//    private Homework homework;
//
//    @ApiModelProperty(value = "附件表")
//    @TableField(exist = false)
//    private CFiles cFiles;
//
//    @ApiModelProperty(value = "要交作业的总人数")
//    @TableField(exist = false)
//    private Integer num;
//
//    @ApiModelProperty(value = "待提交人数")
//    @TableField(exist = false)
//    private Integer num1;
//
//    @ApiModelProperty(value = "待批复人数")
//    @TableField(exist = false)
//    private Integer num2;
//
//    @ApiModelProperty(value = "已批复人数")
//    @TableField(exist = false)
//    private Integer num3;

}
